package com.px.user.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class PasswordModel {
    @NotBlank(groups = {ActionModel.Update.class})
    @ApiModelProperty(value = "电话号")
    private String phone;

    @NotBlank(groups = {ActionModel.Update.class})
    @ApiModelProperty(value = "老密码")
    private String oldPassword;

    @NotBlank(groups = {ActionModel.Update.class})
    @ApiModelProperty(value = "新密码")
    private String password;
}
